﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;

namespace DAO
{
    public class LoaiNhanVienDAO
    {
        public static List<LoaiNhanVien> LayDS()
        {
            try
            {
                QLSTLinqDataContext rv = new QLSTLinqDataContext();
                List<LoaiNhanVien> temp = new List<LoaiNhanVien>();
                var query = from c in rv.LoaiNhanViens
                            select c;
                temp = query.ToList();
                return temp;
            }
            catch
            {
                return null;
            }
        }
    }
}
